//
//  IconDownloader.h
//  TableViewCellCustomizeIconDownload
//
//  Created by Kishikawa Katsumi on 10/05/05.
//  Copyright 2010 Kishikawa Katsumi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface IconDownloader : NSObject {
    id delegate;
    NSIndexPath *indexPathInTableView;
    NSURL *imageURL;
    
    NSMutableData *activeDownload;
    NSURLConnection *imageConnection;
}

@property (nonatomic, assign) id delegate;
@property (nonatomic, retain) NSIndexPath *indexPathInTableView;
@property (nonatomic, retain) NSURL *imageURL;

@property (nonatomic, retain) NSMutableData *activeDownload;
@property (nonatomic, retain) NSURLConnection *imageConnection;

- (void)startDownload;
- (void)cancelDownload;

@end

@protocol IconDownloaderDelegate 

- (void)iconDownloader:(IconDownloader *)downloader didFinished:(UIImage *)image;

@end